﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#import "/spring.ftl" as spring/>
<#assign id=command.id/>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <title>Payment Tx</title>
</head>

<body>
    <form method="post" action="payment_tx.studio">
        <@spring.bind "command.paymentDate"/>
        Payment Date: &nbsp; <input type="text" name="paymentDate" maxlength="12" value="${spring.status.value!}"/><br />
        <#if spring.status.errorMessage?has_content>
            <span style="color: #FF0000">${spring.status.errorMessage}</span><br />
		</#if>
        <@spring.bind "command.paymentReason"/>
        Payment Reason: &nbsp; <input type="text" name="paymentReason" maxlength="255" value="${spring.status.value!}"/><br />
        <#if spring.status.errorMessage?has_content>
            <span style="color: #FF0000">${spring.status.errorMessage}</span><br />
		</#if>
        <@spring.bind "command.receiptNumber"/>
        Receipt Number: &nbsp; <input type="text" name="receiptNumber" maxlength="12" value="${spring.status.value!}"/><br />
        <@spring.bind "command.receiptDate"/>
        Receipt Date: &nbsp; <input type="text" name="receiptDate" maxlength="12" value="${spring.status.value!}"/><br />
        <#if spring.status.errorMessage?has_content>
            <span style="color: #FF0000">${spring.status.errorMessage}</span><br />
		</#if>
        <@spring.bind "command.amount"/>
        Amount: &nbsp; <input type="text" name="amount" maxlength="16" value="${spring.status.value!}"/><br />
        <#if spring.status.errorMessage?has_content>
            <span style="color: #FF0000">${spring.status.errorMessage}</span><br />
		</#if>
        <@spring.bind "command.payer"/>
        Payer: &nbsp; <input type="text" name="payer" maxlength="40" value="${spring.status.value!}"/><br />
        <input type="hidden" name="id" value="${id}"/>
        <#if id lte 0>
        <input type="hidden" name="action" value="0"/>
        <input type="submit" value="Save"/>
        <#else>
        <input type="hidden" name="action" value="1"/>
        <input type="submit" value="Update"/>
        </#if>
    </form>
</body>

</html>
